/*
 * @Author: error: git config user.name && git config user.email & please set dead value or install git
 * @Date: 2022-08-11 17:21:54
 * @LastEditors: error: git config user.name && git config user.email & please set dead value or install git
 * @LastEditTime: 2022-09-14 15:12:17
 * @FilePath: \project\pyy\src\http\modules\purchase.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import axios from '../../utils/axios'
import {
    PURCHASE_LIST,
    PURCHASE_SUBMIT,
    PURCHASE_DETAILS,

}
from '../apiUrl'
export default {
    // 询价比列表
    getList(params) {
        return axios({
            url: 'webjars'+PURCHASE_LIST,
            method: 'post',
            data: params
        })
    },
    // 提交报价
    submitPurchase(data) {
        return axios({
            url: 'webjars'+PURCHASE_SUBMIT,
            method: 'post',
            data
        })
    },
    // 物资明细
    getPurchaseById(params) {
        return axios({
            url: 'webjars'+PURCHASE_DETAILS,
            method: 'post',
            data: params
        })
    },
    // 历史报价列表
    historicalQuoteList(phone,query,pageNumber,pageSize) {
        return axios({
            url: `webjars/RuppliesQuoted/findQuoteList/${phone}/${pageNumber}/${pageSize}/${query}`,
            method: 'get',
    
        })
    },
    // 历史报价物资明细
    quoteMaterialDetailed(phone,id) {
        return axios({
            url: `webjars/RuppliesQuoted/findSumList/${phone}/${id}`,
            method: 'get',
    
        })
    },
}